local Fepairfresh = Class(function(self, inst)
    self.inst = inst
end)
function Fepairfresh:ChangeFresh(target)
    if target.components.perishable then
        if target.components.stackable and target.components.stackable:StackSize() > 40 then
            local Gettarget = target.components.stackable:Get(40)
            Gettarget.components.perishable:SetPercent(1)
            target.components.stackable:Put(Gettarget)
        else
            target.components.perishable:SetPercent(1)
        end
        if self.inst.components.finiteuses then
            self.inst.components.finiteuses:Use(1)
        elseif self.inst.components.stackable then
            self.inst.components.stackable:Get(1):Remove()
        end
    end
end

return Fepairfresh
